import java.io.*;
import java.util.Arrays;
import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        String s="hello,world";
    }
    public static void main5(String[] args) {
         int[] arr={1,2,3,3,4,5,7,9,2};
         boolean j=u(arr);
        System.out.println(j);
    }
    public static boolean u(int[] arr) {
        int count=0;
        for (int i = 0; i <arr.length ; i++) {
            if (arr[i]%2==1){
                count++;
            }
            if (arr[i]%2==0){
                count=0;
            }
            if (count==3){
                return true;
            }
        }
        return false;
    }
    public static int Dani(int[] arr) {
    Arrays.sort(arr);
    return arr[arr.length/2];
    }

    public static int Dan(int[] arr) {
        int j=0;
        for (int i = 0; i <arr.length ; i++) {
            j^=arr[i];
        }
        return j;
    }


public static String err(int[] arr, int key) {
        int j=0;
        for (int i = 0; i <arr.length ; i++) {
            while(j<arr.length) {
                if (arr[i] + arr[j] == key && i != j) {
                    return "[" + i + "'" + j + "]";
                }
               else {j++;}
            }
    }
        return "找不到";
    }
    public static void main4(String[] args) throws IOException {
        File fIle;
        fIle = new File("text.txt");
        PrintWriter w=new PrintWriter(fIle);
        w.write("hello,world");
        w.flush();
        w.close();
        Scanner san=new Scanner(fIle);
        String str=san.nextLine();
        san.close();
        System.out.println(str);

        FileOutputStream s=new FileOutputStream(fIle);
        for (int i = 0; i <10 ; i++) {
            s.write(i);
        }
        FileInputStream z=new FileInputStream(fIle);
        for (int i = 0; i <10 ; i++) {
            int a=z.read();
            System.out.println(a);
        }

        System.out.println();
    }
    public static void main2(String[] args) {
        int[] array=new int[]{1,2,3,4,2,6,4,2,1,19};
        int[] ret=buble(array);
        System.out.println(Arrays.toString(array));

    }
    public static int[] buble(int[] arr){
        for (int i = 0; i <arr.length-1 ; i++) {
            for (int j = 0; j <arr.length-1-i ; j++) {
                boolean m=false;
                if (arr[j] > arr[j+1]) {
                    int ret=arr[j];
                    arr[j]=arr[j+1];
                    arr[j+1]=ret;
                    m=true;}
          if (m=false) {
              break;
          }}}
        return arr;
    }

    public static int er(int[] arr, int key)
    {
        int left=0;
        int right=arr.length-1;
        while(left<right){
            int mid=(left+right)>>>1;
            if(arr[mid]>key){
                right=mid-1;

            }else if(arr[mid]<key){
                left=mid+1;

            }else {
                return mid;
            }
            }
        return -1;
    }
    public static int[] sun(int[] array) {
        int left=0;
        int right=array.length-1;
        int i=0;
        while(left<right&&i<array.length) {
        if(array[i]%2==1){
            array[left++]=array[i];
        } else {
            array[right--]=array[i];
        }
        i++;
        }
        return array;
    }
}



